<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Route;

class News extends BaseModel
{
	public function setImagesUrlAttribute($value)
	{
		$this->attributes['images_url'] = env('ALIOSS_HOST').'/'.$value;
	}
    
    public function store()
    {
    	return $this->belongsTo(Store::class);
    }

    public function adminUser()
    {
        return $this->belongsTo(AdminUser::class);
    }
}
